<?php
namespace app\common\model;




class LoginLog extends Base
{
    public function getList($where = []){
        return $this->alias('b')
            ->join('users c','c.user_id = b.user_id','LEFT')
            ->order('b.lid DESC')
            ->where($where)
            ->field('b.*,c.nick_name,c.phone,c.uuid')
            ->paginate('',false,['query'=>request()->param()])->each(function ($item){
                $item['address'] = ipToAddress($item['ip']);
            });
    }

}